<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
include_once("../config.inc.php");

$fp = @file(__Membertemplate_Path."/wager_error.html");
$fp = implode("", $fp);
$fp = setHTMLCharset($fp);
$fp = str_replace("{Err_Message}", $Err_Message, $fp);
$fp = str_replace("{Err_HiddenMessage}", $Err_HiddenMessage, $fp);
$fp = str_replace("{RunTime}", $RunTime, $fp);
if((int)$_data["Bet_Type"] == 15){
	$tmp = str_replace("&Bet_Type=15", "&Bet_Type=".$_data["preBT"], $_SERVER["QUERY_STRING"]);
	$fp = str_replace("{BackLink}", "mainthrough_checkout.php?".$tmp, $fp);
}else{
	$fp = str_replace("{BackLink}", "wager_common.php?".$_SERVER["QUERY_STRING"], $fp);
}
if(!isset($isGoBack) || !$isGoBack){
	$fp = preg_replace("/<!-- @ Back Start @ \/\/-->.+<!-- @ Back End @ \/\/-->/s", "", $fp);
}
print $fp;
//var_dump(debug_backtrace());
if (defined('PMA_MYSQL_WRAPPERS_LIB_INCLUDED'))@mysql_close($$_Conn);
print "<!--\n";
var_dump(debug_backtrace());
print "\n//-->";
exit("<!--".$GLOBALS["errorhidden"]."//-->");
?>